csharp System.Activities.Activity<TResult>类(方法)实例源码

下面列出了csharp System.Activities.Activity<TResult> 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Activitie   
public sealed class AppendString : Activity<string>
{
    // Input argument.
    [RequiredArgument]
    public InArgument<string> Name { get; set; }

    public AppendString()
    {
        // Define the implementation of this activity.
        this.Implementation = () => new Assign<string>
        {
            Value = new LambdaValue<string>(ctx => Name.Get(ctx) + " says hello world"),
            To = new LambdaReference<string>(ctx => Result.Get(ctx)),
        };
    }
}


问题


面经


文章

微信
公众号

扫码关注公众号